]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Remove ugly hack
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Feb 2015 15:51:20 +0000 (16:51 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Feb 2015 17:20:28 +0000 (18:20 +0100)
We don't need to hard-code any magic offsets to hide the top corners
and border, we can just not add them in the first place.

data/theme/gnome-shell.css
js/ui/lookingGlass.js

index dc9a006b174fd34942a2bdad02c1f1c37e38ec13..09b692ac5f9f96c288718ed112f34bc601ea7d08 100644 (file)
@@ -1199,7 +1199,8 @@ StScrollBar StButton#vhandle:active {
     spacing: 4px;
     padding: 4px;
     border: 2px solid grey;
-    border-radius: 4px;
+    border-top-width: 0;
+    border-radius: 0 0 4px 4px;
 }
 
 #LookingGlassDialog > #Toolbar {
index 93747ec1c8290a1a8b600d3c82ef706175593822..7dd8bd1c02198e902fd6de3821537327fd3158fb 100644 (file)
@@ -1040,7 +1040,7 @@ const LookingGlass = new Lang.Class({
         let availableHeight = primary.height - Main.layoutManager.keyboardBox.height;
         let myHeight = Math.min(primary.height * 0.7, availableHeight * 0.9);
         this.actor.x = primary.x + (primary.width - myWidth) / 2;
-        this._hiddenY = primary.y + Main.layoutManager.panelBox.height - myHeight - 4; // -4 to hide the top corners
+        this._hiddenY = primary.y + Main.layoutManager.panelBox.height - myHeight;
         this._targetY = this._hiddenY + myHeight;
         this.actor.y = this._hiddenY;
         this.actor.width = myWidth;